--local PadUtil={}
module(...,package.seeall)
smallestScreenWidthDp=activity.getResources().getConfiguration().smallestScreenWidthDp
isPad=smallestScreenWidthDp>=600
function fitLayout(lay1,lay2)
  if isPad then
    return lay2 or lay1.."-pad"
   else
    return lay1
  end
  --[[
  if type(lay1)=="table" then
    if PadUtil.smallestScreenWidthDp<600 then
      return lay1
     else
      return lay2
    end
   elseif type(lay1)=="string" then
    if PadUtil.smallestScreenWidthDp<600 then
      return lay1
     else
      return lay2 or lay1.."-pad"
    end
  end]]
end
--return PadUtil